/**
 * @Author YuanYuan
 * @Date 2022/7/11
 * @Time 10:51
 */


public class TestDeo {



    public static void main(String[] args) {
        BinaryTree mybinarytree = new BinaryTree();
        BinaryTree.TreeNode root = mybinarytree.createTree();

        System.out.println(mybinarytree.getLeafNodeCount(root));

        mybinarytree.getLeafNodeCount2(root);
        System.out.println(BinaryTree.leafSize);

        System.out.println(mybinarytree.getKLevelNodeCount(root,3));

        mybinarytree.getKLevelNodeCount2(root,3);
        System.out.println(BinaryTree.levelSize);

        System.out.println(mybinarytree.getKLevelNodeCount(root,3));

        System.out.println(mybinarytree.getHeight(root));

        System.out.println(mybinarytree.find(root,'E'));;

      //  mybinarytree.find(root,'E');

        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root1 = mybinarytree.createTree1("ABD##E##CF###");

        binaryTree.preOrder(root1);
        System.out.println("------------------------");
        binaryTree.levelOrder(root1);
        System.out.println(binaryTree.isCompleteTree(root1));
    }
}
